<?php

namespace BaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * GoodsClassify
 *
 * @ORM\Table(name="goods_classify", options={"comment":"商品分类"})
 * @ORM\Entity()
 */
class GoodsClassify
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="name", type="string", length=45, options={"comment":"分类名称"})
     */
    private $name;

    /**
     * @var GoodsClassify
     *
     * @ORM\ManyToOne(targetEntity="BaseBundle\Entity\GoodsClassify", inversedBy="id")
     * @ORM\JoinColumn(name="parent_id", referencedColumnName="id")
     */
    private $parent_id;

    /**
     * @var int
     *
     * @ORM\Column(name="sort_order", type="integer", nullable=true, options={"comment"="排序的序号", "default"=0})
     */
    private $sortOrder;
}
